//
//  SecondHeadView.m
//  ZiJinLian
//
//  Created by 🐛 on 2017/4/15.
//  Copyright © 2017年 lzy. All rights reserved.
//

#import "SecondHeadView.h"

@implementation SecondHeadView
-(id)initWithFrame:(CGRect)frame{
    if (self=[super initWithFrame:frame]) {
        self.view=[[UIView alloc]initWithFrame:self.frame];
        self.view.backgroundColor=Gray_Color;
        [self addSubview:self.view];
        self.blabel=[[MYLabel alloc]initWithFrame:CGRectMake(0, 13, MainW, 33)];
        self.blabel.text=@"   上传定制产品的照片";
        self.blabel.backgroundColor=[UIColor whiteColor];
        self.blabel.textColor=TextColor3;
        [self.view addSubview:self.blabel];
        
        self.view2=[[UIView alloc]initWithFrame:self.frame];
        self.view2.backgroundColor=Gray_Color;
        [self addSubview:self.view2];
        self.label=[[MYLabel alloc]initWithFrame:CGRectMake(0, 13, MainW, 33)];
        self.label.text=@"   前去首页选购产品,并上传产品图片";
        self.label.backgroundColor=[UIColor whiteColor];
        self.label.textColor=TextColor3;
        UIView*line=[[UIView alloc]init];
        line.backgroundColor=Gray_Color;
        line.frame=CGRectMake(0, 46, MainW, 1);
        [self addSubview:line];
        [self.view2 addSubview:self.label];
        self.arrow=[[UIImageView alloc]initWithFrame:CGRectMake(MainW-17.5, 20.5, 12, 18)];
        self.arrow.image=[UIImage imageNamed:@"icon_arrow_right"];
        [self.view2 addSubview:self.arrow];
        self.Cbtn=[[UIButton alloc]initWithFrame:CGRectMake(MainW-80, 0, 80, 46)];
        self.Cbtn.backgroundColor=[UIColor clearColor];
        [self.Cbtn setTitle:@"你在哪" forState:UIControlStateNormal];
        [self.Cbtn addTarget:self action:@selector(moreBtnClick) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:self.Cbtn];
    }
    return self;
}
-(void)moreBtnClick{
    [_delegate goHomeBtnClick];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
